package com.coderxq.blog.exception;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: 自定义异常
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WsException extends RuntimeException {


    /**
     * 异常信息
     */
    private String message;

    public WsException(String message, Object... arguments) {
        super(StrUtil.format(message, arguments));
        this.message = StrUtil.format(message, arguments);
    }
}
